﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<asp:Panel ID="panel1" runat="server">
<script type="text/javascript">
    function displaybutton(){
        document.getElementById("button1").style.display='none';
    }
    function select_project(type) {
        var temp='<%=Request["PID"] %>';
        var url = '../BCSSManage/ZS_SelectUser.aspx?TYPE=' + type + '&PID='+temp+'&rd=' + Math.random();
        var feature = "dialogWidth:" + 1000 + "px;dialogHeight:" + 450 + "px;scroll:yes;status:no;help:no;center:1";
        var project_info = window.showModalDialog(url, '', feature);
        if (project_info != undefined && project_info.length > 1) {
            document.getElementById('<%=产权人.ClientID %>').value = project_info[1];
            document.getElementById('<%=丘号.ClientID %>').value = project_info[2];
            document.getElementById('<%=房屋坐落.ClientID %>').value = project_info[3];
            document.getElementById('<%=权证编号.ClientID %>').value = project_info[4];
            document.getElementById('<%=建筑面积.ClientID %>').value = project_info[5];
            document.getElementById('<%=承租人.ClientID %>').value = project_info[6];
            document.getElementById('<%=使用性质.ClientID %>').value = project_info[7];
            document.getElementById('<%=房屋结构.ClientID %>').value = project_info[8];
            document.getElementById('<%=所在层数.ClientID %>').value = project_info[9];
            document.getElementById('<%=征收区位等级.ClientID %>').value = project_info[10];
            document.getElementById('<%=txtZSPID.ClientID %>').value = project_info[0];
        }
    }
    function checkNull() {
        var t1 = document.getElementById('<%=产权人.ClientID %>').value;
        if (t1 == null || t1 == "") {
            alert('请点击选择人员进行人员选择！');
            return false;
        } else {
        return true;
        }
    }
    function OpenFileUpload(cqid,cid,pid) {
        window.open('../ZSManage/FileUpload1.aspx?usetype=15&pid='+pid+'&cid='+cid+'&cqid=' + cqid, '文件上传', 'height=600px,width=800px;toolbar =no,menubar=no, scrollbars=yes, resizable=no, location=no, status=yes');
    }
    function ckNumber(obj) {
        var tt = 'ctl00_MainerRegion_ZSPG_SNBCJFHAddControl___';
        var t1 = tt + obj;
        var ctrlTemp = document.getElementById(t1);
        if (ctrlTemp != null) {
            if (isNaN(ctrlTemp.value)) {
                alert("不是一个有效的数字，请重新输入 ！");
                ctrlTemp.value = '';
            }
            var tt=ctrlTemp.value;
            ctrlTemp.value=trim(tt);
        }
    }
    function ltrim(s){ 
        return s.replace( /^\s*/,""); 
    } 
    function rtrim(s){ 
        return s.replace( /\s*$/,""); 
    } 
    function trim(s){ 
        return ltrim(rtrim(s)); 
    }
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
        margin-top: 1px">
        <tr>
                <td valign="middle" height="30">
                    <font style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left; color: black">
                        &nbsp;室内装饰装修补偿金额分户评估  </font>
                </td>
            </tr>
        </table>
        <table border="1" cellpadding="0" cellspacing="0" id="compensationfundestimate" style="border-collapse: collapse;
            table-layout:fixed;width:99%;text-align:center;" class="window_tab_list">
            <tr>
                <th colspan="8" style="text-align:center;line-height: 20px;">
                    室内装饰装修补偿金额分户评估结果表
                    </th>
                </tr>
            <tr style='height: 15.0pt'>
                <td>房屋坐落</td>
                <td colspan="3"><asp:TextBox ID="房屋坐落" runat="server" Width="99%" onfocus="this.blur()"></asp:TextBox></td>
                <td>产权人</td>
                <td><asp:TextBox ID="产权人" runat="server" Width="99%" onfocus="this.blur()"></asp:TextBox></td>
                <td>承租人</td>
                <td><asp:TextBox ID="承租人" runat="server" Width="99%" onfocus="this.blur()"></asp:TextBox></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td>使用性质</td>
                <td><asp:TextBox ID="使用性质" runat="server" Width="99%" onfocus="this.blur()"></asp:TextBox></td>
                <td>建筑面积(m2)</td>
                <td><asp:TextBox ID="建筑面积" runat="server" Width="99%" onfocus="this.blur()"></asp:TextBox></td>
                <td>丘号</td>
                <td><asp:TextBox ID="丘号" runat="server" Width="99%" onfocus="this.blur()"></asp:TextBox></td>
                <td>房屋结构</td>
                <td><asp:TextBox ID="房屋结构" runat="server" Width="99%" onfocus="this.blur()"></asp:TextBox></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td>权证编号</td>
                <td colspan="2"><asp:TextBox ID="权证编号" runat="server" Width="99%" onfocus="this.blur()"></asp:TextBox></td>
                <td>征收区位等级</td>
                <td colspan="2"><asp:TextBox ID="征收区位等级" runat="server" Width="99%" onfocus="this.blur()"></asp:TextBox></td>
                <td>所在层数</td>
                <td><asp:TextBox ID="所在层数" runat="server" Width="99%" onfocus="this.blur()"></asp:TextBox></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td>装饰装修等级或类别</td>
                <td>装饰装修工程费单价(元/m2)</td>
                <td colspan="2">各单项装饰装修调整项目差价总金额折合单价(元/m2)</td>
                <td colspan="2">室内装饰装修综合成新(元/m2)</td>
                <td colspan="2">室内装饰装修补偿评估单价(元/m2)</td>
                
            </tr>
            <tr style='height: 15.0pt'>
                <td><asp:TextBox ID="txtZS装饰装修等级或类别" runat="server" Width="99%"></asp:TextBox></td>
                <td><asp:TextBox ID="txtZS装饰装修工程费单价" runat="server" Width="99%"   onchange="ckNumber('txtZS装饰装修工程费单价')"></asp:TextBox></td>
                <td colspan="2"><asp:TextBox ID="txtZS折合单价" runat="server" Width="99%" onchange="ckNumber('txtZS折合单价')"></asp:TextBox></td>
                <td colspan="2"><asp:TextBox ID="txtZS室内装饰装修综合成新" runat="server" Width="99%" onchange="ckNumber('txtZS室内装饰装修综合成新')"></asp:TextBox></td>
                <td colspan="2"><asp:TextBox ID="txtZS室内装饰装修补偿评估单价" runat="server" Width="99%"   onchange="ckNumber('txtZS室内装饰装修补偿评估单价')"></asp:TextBox></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td colspan="2">室内装饰装修评估补偿金额合计(元)</td>
                <td colspan="2">产权人补偿款(元)</td>
                <td colspan="2">承租人补偿款(元)</td>
                <td>房屋用途</td>
                <td>
                    <asp:DropDownList ID="ddlZS房屋用途" runat="server">
                        <asp:ListItem Text="住宅" Value="住宅"></asp:ListItem>
                        <asp:ListItem Text="非住宅" Value="非住宅"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr style='height: 15.0pt'>
                <td colspan="2"><asp:TextBox ID="txtZS室内装饰装修评估补偿金额合计" runat="server" Width="99%"   onchange="ckNumber('txtZS室内装饰装修评估补偿金额合计')"></asp:TextBox></td>
                <td colspan="2"><asp:TextBox ID="txtZS产权人补偿款" runat="server" Width="99%"  onchange="ckNumber('txtZS产权人补偿款')"></asp:TextBox></td>
                <td colspan="2"><asp:TextBox ID="txtZS承租人补偿款" runat="server" Width="99%"  onchange="ckNumber('txtZS承租人补偿款')"></asp:TextBox></td>
                <td colspan="2"></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td>备注</td>
                <td colspan="7">
                    <asp:TextBox ID="txtZS备注" runat="server" Width="99%" TextMode="MultiLine" Height="60px"></asp:TextBox>
                </td>
            </tr>
            <tr style='height: 15.0pt'>
                <td colspan="5"></td>
                <td>日期：</td>
                <td><CBW:MPCalendar ID="txtZS日期" runat="server" /></td>
                <td><asp:TextBox ID="txtZS空输入框" runat="server"></asp:TextBox></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td colspan="8">
                <asp:Button ID="btnUpload" runat="server" Text="附件上传" />
                    <input id="button1" type="button" value="选择人员" onclick="select_project('snfh')" />&nbsp;&nbsp;
        <asp:Button ID="btn_Insert" runat="server" Text="保存" OnClientClick="return checkNull();" />&nbsp;
        <input type="button" value="返回" onclick="javascript:window.location.href=('ZSPG_SNBCJFHInfo.aspx?PID=<%=HttpContext.Current.Request["PID"] %>');" />
                </td>
            </tr>
        </table>
    <div style="display: none;">
        <asp:TextBox ID="txtPID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtZSPID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txt评估分户类型" runat="server" Text="3"></asp:TextBox>
    </div>
    <CBW:MPPersistence  ID="Persistence1" runat="server"></CBW:MPPersistence>
</asp:Panel>
